//
//  KADataBase.h
//  KeepAccounts
//
//  Created by honeyrr on 2017/10/6.
//  Copyright © 2017年 honeyrr. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface KADataBase : NSObject
//单例
+(KADataBase *) instance;

-(void) createDataBaseWithTable;

//增
-(void) addDataType:(NSString *)billtype name:(NSString *)name money:(NSString *)money imageName:(NSString *)imageName date:(NSString *)date time:(NSString *)time remark:(NSString *)remarl;
//删
-(void) deleteDataWithDate:(NSString *)date;
//改
-(void) updateDataType:(NSString *)billtype name:(NSString *)name money:(NSString *)money imageName:(NSString *)imageName date:(NSString *)date time:(NSString *)time remark:(NSString *)remarl;
//查
-(NSMutableArray *) queryWithDate:(NSString *)date;
//条件查询
-(NSMutableArray *) queryWithDate:(NSString *)date otherWhere:(NSString *)other;
-(NSMutableArray *) queryWithBilltype:(NSString *)billtype;
//查询所有
-(NSMutableArray *) queryWithAllDate;

-(void)clearDataBase;
@end
